//
//  MultipleViewSelectedCellModel.m
//  多View选择器
//
//  Created by LK-IOS on 2018/1/4.
//  Copyright © 2018年 LK-IOS. All rights reserved.
//

#import "MultipleViewSelectedCellModel.h"

@implementation MultipleViewSelectedCellModel

- (CGRect)cellFrame
{
    return CGRectMake(_cellCenter.x - _cellSize.width / 2.0f, _cellCenter.y - _cellSize.height / 2.0f, _cellSize.width, _cellSize.height);
}

- (CGRect)backEllipseFrame
{
    return CGRectMake(_cellCenter.x - _cellSize.width / 2.0f - 5, _cellCenter.y - _cellSize.height / 2.0f - 2, _cellSize.width + 10, _cellSize.height + 4);
}

- (CGFloat)valueRatio
{
    return (1 - fabs(_ratio - _index)) <= 0 ? 0 : (1 - fabs(_ratio - _index));
}


@end
